/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bs.stock.rn;

import bs.stock.dao.ST_ComposicionFormulaDAO;
import bs.stock.modelo.ComposicionFormula;
import bs.stock.modelo.ComprosicionFormulaPK;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Claudio
 */
@Stateless
public class ST_ComposicionFormulaRN {

    @EJB private ST_ComposicionFormulaDAO composicionFormulaDAO;

    public ComposicionFormula getComposicionFormula(ComprosicionFormulaPK idPK){
        return composicionFormulaDAO.getComposicionFormula(idPK);
    }

    public ComposicionFormula getComprosicionFormula(String tipro,String artcod,String formul){        

        ComprosicionFormulaPK idPK = new ComprosicionFormulaPK(artcod,formul);
        return composicionFormulaDAO.getComposicionFormula(idPK);

    }
    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
